<template>
  <view-box ref="viewBox" body-padding-bottom="0px">
    <x-img :src="src" class="qrcode" :offset="-100" container="#vux_view_box_body"></x-img>
  </view-box>
</template>
<script>
  import { ViewBox, XImg } from 'vux'
  export default {
    data () {
      return {
        src: null
      }
    },
    components: {
      ViewBox,
      XImg
    },
    mounted () {
      this.src = decodeURIComponent(this.$route.params.src)
    }
  }
</script>
<style scoped lang="less">
  .qrcode {
    width: 100%;
    height: 100%;
  }
</style>